package com.wanmait.meteor.service;

import com.github.pagehelper.PageInfo;
import com.wanmait.meteor.pojo.Manager;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface ManagerService extends CommonService<Manager> {

    Manager findById(Integer id);

    Manager login(Manager manager);

    boolean checkCode(String code, HttpServletRequest request);

    void addManager(Manager manager);

    public boolean checkManagerPhone(String phone);

    Boolean checkManagerAccount(String managerAccount);

    PageInfo<Manager> findAll( int pageNum, int pageSize);

    int getPageSize(String str);

}
